package greendog.office;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import jxl.Workbook;
import jxl.write.Label;
import jxl.write.Number;
import jxl.write.WritableImage;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class ExcelUtil {

	public void ExportExel(String filePath,String sheetName,List<String> title,List<List<String>> data){
		File excelFile = new File(filePath);
		try {
			WritableWorkbook workbook = Workbook.createWorkbook(excelFile);
			WritableSheet sheet = workbook.createSheet(sheetName, 0);
			int titleLenght = title.size();
			int dataLength = data.size();
			for(int i=0;i<titleLenght;i++){
				
			}
			Label cell = new Label(0, 0, "1.00");
			sheet.addCell(cell);
			workbook.write();
			workbook.close();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (RowsExceededException e) {
			e.printStackTrace();
		} catch (WriteException e) {
			e.printStackTrace();
		}
	}
}
